package com.site.wisdom_construction.service.healthEpidemicModel;

import com.site.wisdom_construction.dao.healthEpidemicModel.HeartRateHistoryDao;
import com.site.wisdom_construction.entity.healthEpidemicModel.HeartRateHistory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/5/7
 * @Description
 */
@Service
public class HeartRateHistoryService implements HeartRateHistoryDao {
    @Autowired
    private HeartRateHistoryDao heartRateHistoryDao;

    @Override
    public int insertHeartRateHistory(Map map) {
        return heartRateHistoryDao.insertHeartRateHistory(map);
    }

    @Override
    public int deleteHeartRateHistory(Map map) {
        return heartRateHistoryDao.deleteHeartRateHistory(map);
    }

    @Override
    public List<HeartRateHistory> findHeartRateHistoryByPage(Map map) {
        return heartRateHistoryDao.findHeartRateHistoryByPage(map);
    }

    @Override
    public long Total(Map map) {
        return heartRateHistoryDao.Total(map);
    }
}
